package org.dromara.admin.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.admin.domain.AdvancePayRecord;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.system.domain.vo.SysUserVo;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 垫资账单付款记录视图对象 hr_advance_pay_record
 *
 * @author Lion Li
 * @date 2025-09-06
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AdvancePayRecord.class)
public class AdvancePayRecordVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 金额（元）
     */
    @ExcelProperty(value = "金额", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "元=")
    private BigDecimal amount;

    /**
     * 类型: PAYMENT(支付), REFUND(退款)
     */
    @ExcelProperty(value = "类型: PAYMENT(支付), REFUND(退款)")
    private String type;

    /**
     * 付款方式: WXPAY(微信支付), ALIPAY(支付宝支付), TRANSFER_WX(线下转账-微信), TRANSFER_ALIPAY(线下转账-支付宝), TRANSFER_BANK(线下转账-网银)
     */
    @ExcelProperty(value = "付款方式: WXPAY(微信支付), ALIPAY(支付宝支付), TRANSFER_WX(线下转账-微信), TRANSFER_ALIPAY(线下转账-支付宝), TRANSFER_BANK(线下转账-网银)")
    private String paymentMethod;

    /**
     * 状态: PENDING(待审核), APPROVED(通过), REJECTED(拒绝)
     */
    @ExcelProperty(value = "状态: PENDING(待审核), APPROVED(通过), REJECTED(拒绝)")
    private String status;

    /**
     * 账单id
     */
    @ExcelProperty(value = "账单id")
    private Long billId;

    /**
     * 订单id
     */
    @ExcelProperty(value = "订单id")
    private Long orderId;

    /**
     * 资方id
     */
    @ExcelProperty(value = "资方id")
    private Long capitalUserId;

    /**
     * 出租方id
     */
    @ExcelProperty(value = "出租方id")
    private Long lessorUserId;

    /**
     * 付款凭证
     */
    @ExcelProperty(value = "付款凭证")
    private String images;

    /**
     * 打款时间
     */
    @ExcelProperty(value = "打款时间")
    private Date paymentTime;

    /**
     * 审核时间
     */
    @ExcelProperty(value = "审核时间")
    private Date auditTime;

    /**
     * 垫资账单付款记录关联的垫资账单
     */
    @ExcelProperty(value = "垫资账单付款记录关联的垫资账单")
    private AdvanceBillVo advanceBill;

    /**
     * 租客信息
     */
    private SysUserVo tenantUser;
    /**
     * 出租方信息
     */
    private SysUserVo lessorUser;
    /**
     * 资方代理信息
     */
    private SysUserVo capitalUser;

}
